﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iNet.Media;

namespace iNet.Media.Video
{
	/// <summary>
	/// 提供常用的視訊格式。
	/// </summary>
	public static class VideoFormats
	{
		/// <summary>
		/// DivX。
		/// </summary>
		public static readonly IMediaFormat DivX = new MediaFormat("DivX", new string[] { "video/x-divx", "video/divx" }, new string[] { });
		/// <summary>
		/// DivX MPEG-4。
		/// </summary>
		public static readonly IMediaFormat DivXMpeg4 = new MediaFormat("DivX MPEG-4", (string)null, new string[] { });
		/// <summary>
		/// H.264 Video。
		/// </summary>
		public static readonly IMediaFormat H264 = new MediaFormat("H.264 Video", "video/h264", new string[] { ".264", ".h264" });
		/// <summary>
		/// Motion JPEG。
		/// </summary>
		public static readonly IMediaFormat MotionJpeg = new MediaFormat("Motion JPEG", "video/x-motion-jpeg", new string[0]);
		/// <summary>
		/// MPEG Video。
		/// </summary>
		public static readonly IMediaFormat MpegVideo = new MediaFormat("MPEG Video", "video/mpeg", new string[] { ".mpg", ".mpeg", ".mpe", ".mpa", ".mp2", ".mpv2" });
		/// <summary>
		/// MPEG-4 Video。
		/// </summary>
		public static readonly IMediaFormat Mpeg4Video = new MediaFormat("MPEG-4 Video", "video/mp4", new string[] { ".mp4", ".m4v" });
		/// <summary>
		/// Real Video。
		/// </summary>
		public static readonly IMediaFormat RealVideo = new MediaFormat("Real Video", "video/vnd.rn-realvideo", new string[] { ".rv" });
		/// <summary>
		/// Video Codec 1 (VC-1)。
		/// </summary>
		public static readonly IMediaFormat Vc1 = new MediaFormat("Video Codec 1", (string)null, new string[] { });
		/// <summary>
		/// Windows Media Video 8。
		/// </summary>
		public static readonly IMediaFormat Wmv = new MediaFormat("Windows Media Video 8", "video/x-ms-wmv", new string[] { ".wmv" });
		/// <summary>
		/// Windows Media Video 9 Advanced (VC-1-compliant)。
		/// </summary>
		public static readonly IMediaFormat Wvc1 = new MediaFormat("Windows Media Video 9 Advanced (VC-1-compliant)", (string)null, new string[] { });
	}
}
